import * as tools from '../tools';


$(function () {
    var hd = document.getElementsByTagName('body')[0],
        js = document.createElement('script');
    js.src = '../../mod/lib/codeCOUNT.js';
    js.type = "text/JavaScript";
    if (js.addEventListener) {
        js.addEventListener("load", function () {
            console.log('ready');
        }, false);
    } else if (js.attachEvent) {
        js.attachEvent("onreadystatechange", function () {
            if (js.readyState === "loaded" || js.readyState === "complete") {
                console.log('ready');
            }
        });
    }
    hd.appendChild(js);
})